changed fallback macro to have the same return type as rint().
authorJan Heller <jheller@svn.gnome.org>
Wed, 21 May 2008 22:31:39 +0000 (22:31 +0000)
committerJan Heller <jheller@src.gnome.org>
Wed, 21 May 2008 22:31:39 +0000 (22:31 +0000)
2008-05-22  Jan Heller  <jheller@svn.gnome.org>

        * extensions/util.h: changed fallback macro to have the
        same return type as rint().

svn path=/trunk/; revision=315

ChangeLog
extensions/util.h

index 92dc6ebddf4117e4d45bd434153c3f34652114a2..f5955a6b9eccb4b8e06177bba053039953b83140 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-22  Jan Heller  <jheller@svn.gnome.org>
+
+       * extensions/util.h: changed fallback macro to have the
+       same return type as rint().
+
 2008-05-21  Sven Neumann  <sven@gimp.org>
 
        * babl/babl-internal.h (rint): changed fallback macro to have the
index 4836dfe70876d8422c1910fb8d93fd1df7b7674d..1e6b070eceb86e59c77a31b048a10e704a049465 100644 (file)
@@ -25,7 +25,7 @@
 #include "config.h"
 
 #ifndef HAVE_RINT
-# define rint(f)  ((long) floor (((double) f) + 0.5))
+# define rint(f)  (floor (((double) (f)) + 0.5))
 #endif